package com.zkt.recommend.application.mq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @author 赵开泰
 * @program jc-club
 * @date 2025/3/25
 * @description
 **/

@Component
@RocketMQMessageListener(topic = "test-topic", consumerGroup = "consumer-test")
@Slf4j
public class TestConsumer implements RocketMQListener<String> {
	
	@Override
	public void onMessage(String message) {
		log.info("接收到mq：:{}", message);
	}
	
}
